package com.nyist.springcloud.controller;

import com.nyist.springcloud.service.MessageProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangxiaogen
 * @date 2021/2/9 15:46
 */
@RestController
public class MessageProviderController {

    @Autowired
    private MessageProviderService messageProviderService;

    @GetMapping("/sendMessage")
    public String sendMessage() {

        return messageProviderService.send();
    }

}
